<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="java.util.List"%>
<%@ page import="com.neuedu.model.Food"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<title>修改菜谱</title>
<!-- for-mobile-apps -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Great Taste Responsive web template, Bootstrap Web Templates, Flat Web Templates, Android Compatible web template, 
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyEricsson, Motorola web design" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false);
		function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- //for-mobile-apps -->
<link href="${pageContext.request.contextPath}/pages/css/bootstrap.css" rel="stylesheet" type="text/css" media="all" />
<link href="${pageContext.request.contextPath}/pages/css/style1.css" rel="stylesheet" type="text/css" media="all" />
<!-- js -->
<script src="${pageContext.request.contextPath}/pages/js/jquery-1.11.1.min.js"></script>
<!-- //js -->
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Great+Vibes' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Comfortaa:400,300,700' rel='stylesheet' type='text/css'>

<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/jquery-easyui-1.4.1/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/jquery-easyui-1.4.1/themes/icon.css">
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/jquery-easyui-1.4.1/themes/color.css">
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/jquery-easyui-1.4.1/demo/demo.css">
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-easyui-1.4.1/jquery.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/jquery-easyui-1.4.1/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/jquery-easyui-1.4.1/locale/easyui-lang-zh_CN.js"></script>



</head>
<body>

<!-- banner-body -->
	<div class="banner-body">
		<div class="container">
			<div class="banner-body-content">
			<div class="col-xs-3 banner-body-left">
				<div class="logo">
					<h1><a href="#">Great <span>Taste</span></a></h1>
				</div>
				<div class="top-nav">
					<nav class="navbar navbar-default">
						<div class="navbar-header">
						  <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
							<span class="sr-only">Toggle navigation</span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
						  </button>
						</div>

						<div class="collapse navbar-collapse nav-wil" id="bs-example-navbar-collapse-1">
							<nav class="stroke">
								<ul class="nav navbar-nav">
									<li class="active"><a href="My_information.jsp"><i class="home"></i>我的资料</a></li>
									<li><a href="My_article.jsp" class="hvr-underline-from-left"><i class="text-size1"></i>我的文章</a></li>
									<li><a href="My_collection.jsp" class="hvr-underline-from-left"><i class="picture1"></i>我的收藏</a></li>
									<li><a href="My_comments.jsp" class="hvr-underline-from-left"><i class="edit1"></i>我的评论</a></li>

								</ul>
							</nav>
						</div>
					</nav>
				</div>
			</div>

			<div class="col-xs-9 banner-body-right">
				<div class="wmuSlider example1">
					<div class="wmuSliderWrapper">
						<article style="position: absolute; width: 100%; opacity: 0;">
							<div class="banner-wrap">
								<div class="banner">
								</div>
							</div>
						</article>
						<article style="position: absolute; width: 100%; opacity: 0;">
							<div class="banner-wrap">
								<div class="banner1">
								</div>
							</div>
						</article>
						<article style="position: absolute; width: 100%; opacity: 0;">
							<div class="banner-wrap">
								<div class="banner2">
								</div>
							</div>
						</article>
					</div>
				</div>
					<script src="${pageContext.request.contextPath}/pages/js/jquery.wmuSlider.js"></script>
					  <script>
						$('.example1').wmuSlider();
					 </script>
				<div class="banner-bottom">
					<div class="col-md-4 banner-left">
						<div class="col-xs-3 banner-left1">
							<div class="banner-left11">
								<span> </span>
							</div>
						</div>

						<div class="col-xs-9 banner-right1">
							<a href="index.jsp"><h3> 返回首页</h3></a>
						</div>
						<div class="clearfix"> </div>
					</div>


					<div class="col-md-4 banner-left">
						<div class="col-xs-3 banner-left1">
							<div class="banner-left22">
								<span> </span>
							</div>
						</div>
						<div class="col-xs-9 banner-right1">
							<a href="Add_article.jsp"><h3>添加菜谱</h3></a>
						</div>
						<div class="clearfix"> </div>
					</div>

					<div class="col-md-4 banner-left">
						<div class="col-xs-3 banner-left1">
							<div class="banner-left33">
								<span> </span>
							</div>
						</div>
						<div class="col-xs-9 banner-right1">
							<a href="#"><h3>修改菜谱</h3></a>
						</div>
						<div class="clearfix"> </div>
					</div>
					<div class="clearfix"></div>
				</div>
			</div>

			<div class="clearfix"> </div>
			<div class="col-xs-3 banner-body-left">

			</div>
			<div class="col-xs-9 banner-body-right">

				<div class="msg-text-bottom">

					<div class="mail-grid1">
						<h3>修改<span>菜谱</span></h3>
						<p>Update Menu.</p>
						
						<form action="${pageContext.request.contextPath}/Food/updateFood.do?foodNo=${fooddetail.foodNo}" enctype="multipart/form-data" method="post">
							<label>菜名：</label><input type="text" name="foodName"  value="${fooddetail.foodName}"><br><br>
							<label>图片：</label><input type="file" name="file1"><br><br>
							<img src="${pageContext.request.contextPath}/pages/${fooddetail.foodImg}"  
						    formatter="headImageFormat" 
						   	style="height:200px;width:200px" >
						   	<input type="hidden" name="foodImg" value="${fooddetail.foodImg}">
						   	</br><br>
							<label>简介:</label><textarea name="introduction" >${fooddetail.introduction}</textarea>							
							<label>类型编号：</label>
							<input type="text" name="foodType.typeNo" value="${fooddetail.typeNo}"></br><br>
							
							<label>做法编号：</label>
							<input type="text" name="foodMake.makeNo" value="${fooddetail.makeNo}"></br><br>
							
							<!-- <label>用户编号：</label> -->
							<input type="hidden" name="userMessage.userNo" value="${INDEX_LOGIN.userNo}"></br><br>
										
							<label>制作工具：</label><input type="text" name="tools" value="${fooddetail.tools}"><br><br>
							<label>制作材料：</label><textarea name="ingredient" >${fooddetail.ingredient}</textarea>
							<label>制作步骤：</label><textarea name="step" >${fooddetail.step}</textarea>						
							
							<label>发布时间：</label>
							<input name="publishTime" class="easyui-datebox" validType="date"></input> <br><br>
							<input type="hidden" name="state" value="合法">
											
							<input type="submit" value="修改菜谱">
							
						</form>
					</div>
					<div class="clearfix"> </div>
				</div>
			</div>
			<div class="clearfix"> </div>
			<div class="footer">
				<div class="footer-left">
					<ul>
						<li><a href="#">Privacy Policy</a>|</li>
						<li><a href="#">Terms of Use</a>|</li>
						<li><a href="mail.jsp">Contact Us</a></li>
					</ul>
					<p>Copyright &copy;民师院 枸杞泡水</p>
				</div>
				<div class="footer-right">
					<ul class="social-nav model-3">
						<li><a href="#" class="icon icon-border facebook"></a></li>
						<li><a href="#" class="icon icon-border twitter"></a></li>
						 <li><a href="#" class="icon icon-border googleplus"></a></li>
						 <li><a href="#" class="icon icon-border github"></a></li>
						 <li><a href="#" class="icon icon-border rss"></a></li>
					</ul>
				</div>
				<div class="clearfix"> </div>
			</div>
		</div>
		</div>
	</div>


<script type="text/javascript">

//重新设置easy ui的时间格式
$.fn.datebox.defaults.formatter=function(date){
	var y=date.getFullYear();
	var m=date.getMonth()+1;
	var d=date.getDate();
	return y+'/'+m+'/'+d;
}
$.fn.datebox.defaults.parser=function(date){
	if(date){
		return new Date(date)
	}else{
		return new Date();
	}
}

</script>



	<script src="${pageContext.request.contextPath}/pages/js/bootstrap.js"></script>
<!-- //for bootstrap working -->
</body>
</html>